<script type="text/html" template lay-done="layui.data.done(d);">
    <table class="layui-table layui-form" lay-filter="LAY-app-CoreCmsUserGrade-detailsForm" id="LAY-app-CoreCmsUserGrade-detailsForm">
        <colgroup>
            <col width="130">
            <col>
        </colgroup>
        <tbody>

            <!--<tr>
                <td>
                    <label for="id">id</label>
                </td>
                <td>
                    {{ d.params.data.id || '' }}
                </td>
            </tr>-->

            <tr>
                <td>
                    <label for="title">等级名称</label>
                </td>
                <td>
                    {{ d.params.data.title || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="isDefault">是否默认</label>
                </td>
                <td>
                    <input type="checkbox" disabled name="isDefault" value="{{d.params.data.isDefault}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="isDefault" {{ d.params.data.isDefault ? 'checked' : '' }}>
                </td>
            </tr>

            <tr>
                <td>
                    <label for="isOpenUpgrade">开启自动升级</label>
                </td>
                <td>
                    <input type="checkbox" disabled name="isOpenUpgrade" value="{{d.params.data.isOpenUpgrade}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="isOpenUpgrade" {{ d.params.data.isOpenUpgrade ? 'checked' : '' }}>
                </td>
            </tr>

            <tr>
                <td>
                    <label for="developNum">发展用户数量</label>
                </td>
                <td>
                    {{ d.params.data.developNum || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="expenditureMoney">订单消费金额</label>
                </td>
                <td>
                    {{ d.params.data.expenditureMoney || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="rechargeAmount">充值总金额</label>
                </td>
                <td>
                    {{ d.params.data.rechargeAmount || '' }}
                </td>
            </tr>

            <tr>
                <td>
                    <label for="prioritySortId">权重优先级</label>
                </td>
                <td>
                    {{ d.params.data.prioritySortId || '' }}
                </td>
            </tr>

        </tbody>
    </table>
</script>
<script>
    var debug = layui.setter.debug;
    layui.data.done = function (d) {
        //开启调试情况下获取接口赋值数据
        if (debug) { console.log(d.params.data); }

        layui.use(['admin', 'form', 'coreHelper'], function () {
            var $ = layui.$
                , setter = layui.setter
                , admin = layui.admin
                , coreHelper = layui.coreHelper
                , form = layui.form;
            form.render(null, 'LAY-app-CoreCmsUserGrade-detailsForm');
        });
    };
</script>